<div class="properties index">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Blog Posts'); ?></h1>
			</div>
		</div><!-- end col md 12 -->
	</div><!-- end row -->



	<div class="row">

    <?php echo $this->element('admin-menu'); ?>
<!-- end col md 3 -->

		<div class="col-md-9">
			<table cellpadding="0" cellspacing="0" class="table table-striped">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('title');?></th>
			<th><?php echo $this->Paginator->sort('published');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($blogPosts as $blogPost):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo h($blogPost['BlogPost']['id']); ?>&nbsp;</td>
		<td><?php echo h($blogPost['BlogPost']['title']); ?>&nbsp;</td>
		<td><?php  if($blogPost['BlogPost']['published']==1) echo 'Published'; else echo ' Un-Published'; ?>&nbsp;</td>
		<td><?php echo $this->Time->format($blogPost['BlogPost']['created'], '%b %e, %Y %H:%m %p'); ?>&nbsp;</td>
		<td><?php echo $this->Time->format($blogPost['BlogPost']['modified'], '%b %e, %Y %H:%m %p'); ?>&nbsp;</td>
        <td class="actions">
							<?php echo $this->Html->link('<span class="glyphicon glyphicon-search"></span>', array('action' => 'view', $blogPost['BlogPost']['id']), array('escape' => false)); ?>
							<?php echo $this->Html->link('<span class="glyphicon glyphicon-edit"></span>', array('action' => 'edit', $blogPost['BlogPost']['id']), array('escape' => false)); ?>
							<?php echo $this->Form->postLink('<span class="glyphicon glyphicon-remove"></span>', array('action' => 'delete', $blogPost['BlogPost']['id']), array('escape' => false), __('Are you sure you want to delete # %s?', $blogPost['BlogPost']['id'])); ?>
						</td>

	</tr>
<?php endforeach; ?>
	</table>

<?php
echo $this->element('admin-paginate');
?>

		</div> <!-- end col md 9 -->
	</div><!-- end row -->


</div><!-- end containing of content -->